// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-model.ts.hbs生成
import { IEditFormModel, IFormStore, IParam } from '@/core';
function getModel(): IEditFormModel {
    return {
        name: "form",
        caption: "",
        codeName: "Main3",
        enableAutoSave: false,
        entityCodeName: "IBIZSample0001",
        keyPSAppDEField: "IBIZSample0001Id",
        majorPSAppDEField: "IBIZSample0001Name",
        cssName: "",
        controlType: "FORM",
        formStyle: "",
        valueRule: getValueRule(),
        createDefaultItems: getCreateDefaultItems(),
        updateDefaultItems: getUpdateDefaultItems(),
        detailModel: getDetailModel(),
        ctrlMsgModel:[
    ],
        uiEngineModel: [
            {
                name: 'engine_form',
                triggerType: 'CTRLEVENT',
                logicType: 'APPVIEWENGINE',
                eventNames: 'LOAD;SAVE;REMOVE',
                scriptCode: ``,
                entityCodeName: '',
                logicName:``
            }
    ]
    }
}
function getValueRule() {
    return [
    ]
}

function getCreateDefaultItems() {
    return [
    ]
}

function getUpdateDefaultItems() {
    return [
    ]
}
function getDetailModel() {
    return {
        formpage1: {
            caption: "表单分页",
            captionItemName: "",
            name: "formpage1",
            codeName: "formpage1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMPAGE",
            showCaption: false,
            enableAnchor: false,
            showMoreMode: 0,
        },
        grouppanel5: {
            caption: "基础表单项-分组",
            captionItemName: "",
            name: "grouppanel5",
            codeName: "grouppanel5",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
            uIActionGroup: {
                extractMode: "",
                caption: "表单分组界面行为组",
                details: [
                ],
            },
        },
        grouppanel6: {
            caption: "表单分组1",
            captionItemName: "",
            name: "grouppanel6",
            codeName: "grouppanel6",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        grouppanel7: {
            caption: "表单分组2",
            captionItemName: "",
            name: "grouppanel7",
            codeName: "grouppanel7",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        group1: {
            caption: "基础表单项-实体属性",
            captionItemName: "",
            name: "group1",
            codeName: "group1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        ibizsample0001name: {
            caption: "实体属性",
            captionItemName: "",
            name: "ibizsample0001name",
            codeName: "ibizsample0001name",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "IBIZSample0001Name",
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            layout:{parentLayout: 'TABLE_24COL',colMD: 24,},
        },
        grouppanel2: {
            caption: "基础表单项-分页",
            captionItemName: "",
            name: "grouppanel2",
            codeName: "grouppanel2",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        tabpanel1: {
            caption: "",
            captionItemName: "",
            name: "tabpanel1",
            codeName: "tabpanel1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "TABPANEL",
            showCaption: false,
            enableAnchor: false,
            showMoreMode: 0,
        },
        tabpage1: {
            caption: "分页",
            captionItemName: "",
            name: "tabpage1",
            codeName: "tabpage1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "TABPAGE",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
        },
        tabpage2: {
            caption: "分页",
            captionItemName: "",
            name: "tabpage2",
            codeName: "tabpage2",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "TABPAGE",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
        },
        grouppanel1: {
            caption: "基础表单项-关系界面",
            captionItemName: "",
            name: "grouppanel1",
            codeName: "grouppanel1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        druipart1: {
            caption: "",
            captionItemName: "",
            name: "druipart1",
            codeName: "druipart1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "DRUIPART",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
        },
        grouppanel3: {
            caption: "基础表单项-表单按钮",
            captionItemName: "",
            name: "grouppanel3",
            codeName: "grouppanel3",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        button1: {
            caption: "打开文档",
            captionItemName: "",
            name: "button1",
            codeName: "button1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "BUTTON",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            uIAction: {
                caption: "打开文档",
                uIActionMode: "FRONT",
                disabled: false,
                visible: true,
                uIActionTag: "openDocument",
                noPrivDisplayMode: 2,
                dataAccessAction: "",
                actionTarget: "NONE",
                showCaption: true,
                predefinedType: "",
                actionDECodeName: "IBIZSample0001",
                
                iconClass: "fa fa-twitter"
            },
        },
        grouppanel4: {
            caption: "基础表单项-直接内容",
            captionItemName: "",
            name: "grouppanel4",
            codeName: "grouppanel4",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        rawitem1: {
            caption: "",
            captionItemName: "",
            name: "rawitem1",
            codeName: "rawitem1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "RAWITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
        },
        grouppanel8: {
            caption: "基础表单项-复合表单项",
            captionItemName: "",
            name: "grouppanel8",
            codeName: "grouppanel8",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        formitemex1: {
            caption: "复合表单项",
            captionItemName: "",
            name: "formitemex1",
            codeName: "formitemex1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            editRules: {
                editorType: 'DATEPICKEREX',
            },
            layout:{parentLayout: 'TABLE_24COL',colMD: 24,},
        },
        grouppanel9: {
            caption: "基础表单项-直接页面嵌入",
            captionItemName: "",
            name: "grouppanel9",
            codeName: "grouppanel9",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        iframe1: {
            caption: "",
            captionItemName: "",
            name: "iframe1",
            codeName: "iframe1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "IFRAME",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
        },
        formpage3: {
            caption: "表单分页",
            captionItemName: "",
            name: "formpage3",
            codeName: "formpage3",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMPAGE",
            showCaption: false,
            enableAnchor: false,
            showMoreMode: 0,
        },
    }
}
export const model = getModel();
